package ClassWork.Work_05;

public class ReflectDemo {
    public static void main(String[] args) throws ClassNotFoundException {
        demo1();
    }

    public static void demo1() throws ClassNotFoundException {
        Class clazz1 = Class.forName("ClassWork.Work_05.Student");
        Class clazz2 = Student.class;

        Student student = new Student();
        Class clazz3 = student.getClass();

        System.out.println(clazz1 == clazz2);
        System.out.println(clazz1 == clazz3);
    }
}
